package com.chi.javasebasic;

/**
 * @author chi  2017-07-11 16:33
 **/
public class StringTest {
    public static void main(String[] args) {
        String a = "hello";
        String b = "hell" + new String("o");
        System.out.println(a==b);   //false
        System.out.println(a.equals(b));  //true
        String c = "hello";
        System.out.println(a==c);  //true


    }
}
